package com.yyaccp.appinfo.utils;

import lombok.Data;

import java.util.List;
@Data
public class PageBean {
    private int pageNum;
    private int pageSize;
    private int count;
    private int pageTotal;
    private List dataList;

    public void setCount(int count){
        this.count = count;
        this.pageTotal = count%pageSize == 0 ? count/pageSize : count/pageSize+1;
    }
}
